package concept.chapter5.swtichStatements;

public class Switch2
{
	public static final short x = 1;
	static final int y = 3;
	
	public static void main(String...strings)
	{
		for(int z=5; z>0; --z)
		{
			System.out.println("\nbegin: z="+z);
			switch(z)
			{
			case y: System.out.print(0);
			case y-1: System.out.print(1);
			case x: z--;
			default: System.out.println("No match for z");
			}
			System.out.println("\nend: z="+z);
		}
	}
}
